package com.wxxymaker.edu.model.entity;

import io.github.biezhi.anima.Model;
import io.github.biezhi.anima.annotation.Ignore;
import io.github.biezhi.anima.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @AUTHOR soft
 * @DATE 2018/9/2 21:57
 * @DESCRIBE 学生提问
 */
@EqualsAndHashCode(callSuper = false)
@Data
@Table(name = "ask")
public class Ask extends Model {
    private Integer id;

    private Integer userId;    // 提问用户

    private Integer teaId;     // 提问课程所属的老师

    @Ignore
    private User    user;

    private Integer courseId;  // 提问所属课程
    @Ignore
    private Course  course;

    private Integer taskId;    // 提问所属课程任务
    @Ignore
    private Task    task;

    private String  title;      // 提问标题
    private String  content;    // 提问内容
    private Integer looks;      // 浏览量
    private Integer results;    // 回复答案数
    private String  time;       // 提问时间
}
